﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace homeIMSClient.Model
{
    public class warrantyInfo
    {
        //private variables to store information
        private int _warrantyID;
        private DateTime _startDate;
        private DateTime _endDate;
        private string _coverage;
        private int _phoneNum;
        private string _comment;

        //public variables for retrieval/change
        public int WarrantyID
        {
            get { return _warrantyID; }
        }

        public DateTime StartDate
        {
            get { return _startDate; }
            set { _startDate = value; }
        }

        public DateTime EndDate
        {
            get { return _endDate; }
            set { _endDate = value; }
        }

        public string Coverage
        {
            get { return _coverage; }
            set { _coverage = value; }
        }

        public int PhoneNum
        {
            get { return _phoneNum; }
            set { _phoneNum = value; }
        }

        public string Comment
        {
            get { return _comment; }
            set { _comment = value; }
        }

        //constructor will take maintInfo and store information for use
        public warrantyInfo(homeIMSRef.warrantyInfo warrantyInfo)
        {
            //store informatio into private variables
            _warrantyID = warrantyInfo.warrantyID;
            _startDate = warrantyInfo.startDate;
            _endDate = warrantyInfo.endDate;
            _coverage = warrantyInfo.coverage;
            _comment = warrantyInfo.comments;

        }
    }
}
